package com.smart.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smart.pojo.SalesOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.req.SalesReq;
import com.smart.resp.EchartsData;
import com.smart.resp.PopularProduct;
import com.smart.resp.SalesOrderResp;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyj
 * @since 2023-05-15
 */
public interface ISalesOrderService extends IService<SalesOrder> {

    void queryByCondition(SalesReq salesReq, Page<SalesOrderResp> page);

    int getCurrentOrders();

    BigDecimal getCurrentTurnover();

    BigDecimal getTotalTurnover();

    PopularProduct getWeekPopularProduct();

    PopularProduct getYearPopularProduct();

    List<EchartsData> getTurnoverData();

    List<EchartsData> getSalesData();

    List<EchartsData> getProfitData();
}
